<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div,p,span{
            color: red;
            font-size: 20px;
        }
        div{
            color: aqua !important;
        }
        .box1{
            color: pink;
        }
        .box2{
            color: palevioletred;
        }
        #main{
            color: rgb(0, 0, 0);
        }
        /* 选择器的优先级：
        1）如果属性不同 则样式叠加
        2 ）如果属性相同 则有优先级*/
    </style>
</head>
<body>
    <div id="main" class="box1 box2">今天天气很好</div>
    <p class="box2">The Rainy</p>
    <span>我很喜欢</span>
</body>
</html>